package multipowny.ssrr;

public class Utility extends Square{

	int squareID;
	String set; //idem
	int buyPrice;
	int priceBase;
	int priceWholeSet;
	int mortgagePrice;
	Player owner;

	public Utility(String theName, String theSet, int theBuyPrice, int thePriceBase, int thePriceWholeSet, int theMortgagePrice, int theSquareID) {
		super();

		name = theName;
		set = theSet;
		buyPrice = theBuyPrice;
		priceBase = thePriceBase;
		priceWholeSet = thePriceWholeSet;
		mortgagePrice = theMortgagePrice;
		squareID = theSquareID;

	}

	public String toString(String theName, String TheSet, int theBuyPrice, int thePriceBase, int thePriceWholeSet, int theMortgagePrice){
		return name + "-" + set + "-" + buyPrice + "-" + priceBase + "-" + priceWholeSet + "-" + mortgagePrice;
	}
	
	//set eigenaar
	public void setOwner(Player theOwner) {
		owner = theOwner;
	}
	
	//alle getters
	
	public int getBuyPrice() {
		return buyPrice;
	}
	
	public int getPriceBase() {
		return priceBase;
	}
	
	public int getPriceWholeSet() {
		return priceWholeSet;
	}
	
	public int getMortgagePrice() {
		return mortgagePrice;
	}
	
	public String getOwner() {
		return owner.getName();
	}
}




